<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
[@seo type = "brandList"]
	<title>[#if seo.title??][@seo.title?interpret /][#else]${message("shop.brand.title")}[/#if][#if systemShowPowered] - 766 SMART HOME[/#if]</title>
	<meta name="author" content="BIZ Team" />
	<meta name="copyright" content="BIZ" />
	[#if seo.keywords??]
		<meta name="keywords" content="[@seo.keywords?interpret /]" />
	[/#if]
	[#if seo.description??]
		<meta name="description" content="[@seo.description?interpret /]" />
	[/#if]
[/@seo]
<link href="${base}/resources/shop/css/common.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/shop/css/product.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/shop/css/favorable.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/shop/css/customer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/shop/js/jquery.js"></script>
</head>
<body>
	[#include "/shop/include/login_header.ftl" /]
	<div class="container brandList">
		<div class="span24 last">
			<div class="path">
				<ul>
					<li>
						<a href="${base}/">${message("shop.path.home")}</a>
					</li>
					<li><a>特惠活动</a></li>
					<li class="last" info="${productCategoryId},${isProduct}">[#if isProduct==1&&productCategoryId==null]特惠商品[#elseif productCategoryId!=null]组合套餐[#else]特惠方案[/#if]</li>
				</ul>
			</div>
			<div class='favorable-h-img'>
				<img src='[#if teHuiManager?size>0]${teHuiManager.get(0).path}[/#if]' />
			</div>
			<form id="productForm" action="tehui.jhtml" method="get">
				<input type="hidden"name="isProduct" value="${isProduct}"/>
				<input type="hidden" id="pageNumber" name="pageNumber" value="${pageNumber}"/>
				<div id="list" class="list clearfix">
					[#if page.content?has_content && isProduct??]
						<ul>
						[#if isProduct == 1]
							[#list page.content as product]
								<li class="timer-favorable">
									<a href="${product.path}">
										<div>
											<img src="[#if product.image??]${product.image}[#else]${setting.defaultMediumProductImage}[/#if]"/>
										</div>
										<span class="favorable-label"></span>
										<ul class="favorable-commodity">
											<li class="commodity-t">${abbreviate(product.name, 30)}</li>
											<li class="commodity-s">市场价：￥${product.marketPrice?string("0.00")}</li>
											<li class="commodity-p">￥${product.price?string("0.00")}</li>
										</ul>
									</a>
								</li>
							[/#list]
						[#elseif isProduct == 0]
							[#list page.content as scheme]
								<li class="timer-favorable">
									<a href="${base}/shop/scheme/content.jhtml?id=${scheme.id}">
										<div>
											<img src="[#if scheme.image??]${scheme.image}[#else]${setting.defaultMediumProductImage}[/#if]"/>
										</div>
										<span class="favorable-label"></span>
										<ul class="favorable-commodity">
											<li class="commodity-t">${abbreviate(scheme.name, 30)}</li>
											<li class="commodity-p">￥${scheme.price?string("0.00")}</li>
										</ul>
									</a>
								</li>
							[/#list]
						[/#if]
						</ul>
					[#else]
						${message("shop.brand.noResult")}
					[/#if]
				</div>
				[@pagination pageNumber = page.pageNumber totalPages = page.totalPages pattern = "javascript: $.pageSkip({pageNumber});"]
					[#include "/shop/include/pagination.ftl"]
				[/@pagination]
			</form>
		</div>
	</div>
	[#include "/shop/include/fastGetCase.ftl" /]
	[#include "/shop/include/footer.ftl" /]
	<script type="text/javascript" src="${base}/resources/shop/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/shop/js/jQuery-jcContact.js"></script>
<script type="text/javascript" src="${base}/resources/shop/js/jquery.lazyload.js"></script>
<script type="text/javascript" src="${base}/resources/shop/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/shop/js/public.js"></script>
<script type="text/javascript">
	$().ready(function() {
		var $logo = $("#list img");
		var $productForm = $("#productForm");
		var $pageNumber = $("#pageNumber");
		
		$logo.lazyload({
			threshold: 100,
			effect: "fadeIn"
		});
		
		$.pageSkip = function(pageNumber) {
		$pageNumber.val(pageNumber);
		$productForm.submit();
		return false;
	}
		
	});
</script>
</body>
</html>